﻿using MetroDataApi.Models;
using System.Collections.Generic;
using System.Web.Http;
using Newtonsoft.Json;
using MetroDataApi.Models.ModelDefination;

namespace MetroDataApi.Controllers
{
    public class ProjectsController : ApiController
    {
        // GET api/projects
        public string Get(string type = "MetroMonitor", string city = "上海")
        {
            return JsonConvert.SerializeObject(ProjectsHelper.GetLines(type, city));
        }
    }
}
